package com.jason.quectel0805.entities;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * @author：Jason
 * @date：2022/8/10 11:15
 * @email：1129847330@qq.com
 * @description:
 */
@Entity(tableName = "user")
public class User {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo
    public long id;
    @ColumnInfo
    public String name;
    @ColumnInfo
    public int age;
    @ColumnInfo
    public String sex;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }
}